package com.damocode.starter.yx.http;

import org.springframework.util.StringUtils;

public class YxUserRequest extends YxRequest {

    public YxUserRequest(String url,String appKey,String appSecret) {
        super(url,appKey,appSecret);
    }

    public void setAccid(String accid) {
        if(!StringUtils.isEmpty(accid)){
            this.putParameter("accid",accid);
        }
    }

    public void setName(String name) {
        if(!StringUtils.isEmpty(name)){
            this.putParameter("name",name);
        }
    }

    public void setIcon(String icon) {
        if(!StringUtils.isEmpty(icon)){
            this.putParameter("icon",icon);
        }
    }

    public void setToken(String token){
        if(!StringUtils.isEmpty(token)){
            this.putParameter("token",token);
        }
    }
}
